package com.whfc.ms.api.quality.service.impl;

import com.whfc.common.result.PageData;
import com.whfc.ms.api.quality.service.MsQualityRectifyService;
import com.whfc.quality.dto.QualityCheckDTO;
import com.whfc.quality.dto.QualityRectifyDTO;
import com.whfc.quality.param.QualityRectifyAddParam;
import com.whfc.quality.param.QualityRectifyEditParam;
import com.whfc.quality.service.QualityRectifyService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author: hw
 * @date: 2021-10-19 15:54
 * @description: 质量整改单
 */
@Service
public class MsQualityRectifyServiceImpl implements MsQualityRectifyService {

    @DubboReference(interfaceClass = QualityRectifyService.class, version = "1.0.0")
    private QualityRectifyService qualityRectifyService;

    @Override
    public PageData<QualityRectifyDTO> list(Integer deptId, Date startTime, Date endTime, Integer pageNum, Integer pageSize) {
        return qualityRectifyService.list(deptId, startTime, endTime, pageNum, pageSize);
    }

    @Override
    public PageData<QualityCheckDTO> details(Integer rectifyId, Integer pageNum, Integer pageSize) {
        return qualityRectifyService.details(rectifyId, pageNum, pageSize);
    }

    @Override
    public void add(QualityRectifyAddParam param) {
        qualityRectifyService.add(param);
    }

    @Override
    public void edit(QualityRectifyEditParam param) {
        qualityRectifyService.edit(param);
    }

    @Override
    public void del(Integer rectifyId) {
        qualityRectifyService.del(rectifyId);
    }

    @Override
    public void export(Integer rectifyId) {
        qualityRectifyService.export(rectifyId);
    }

    @Override
    public void deleteBatch(List<Integer> idList) {
        qualityRectifyService.deleteBatch(idList);
    }
}
